package com.antdesignbackend.backend.production.reservation.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 留种记录
 *
 * @author 不二
 * @email reservation
 * @date 2020-08-25 15:09:50
 */

@Data
@TableName(value = "t_reservation")
public class Reservation implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    //变动日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "Time")
    private Date time;
    //变动数量
    @TableField(value = "Number")
    private Integer number;
    //变动前种类 0哺乳牲畜，1保育牲畜，2育成牲畜
    @TableField(value = "OldType")
    private Integer oldType;
    //变动后种类 0哺乳牲畜，1保育牲畜，2育成牲畜，3后备母畜
    @TableField(value = "NewType")
    private Integer newType;
    //上报人
    @TableField(value = "CreateBy")
    private Integer createBy;
    //上报日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "CreateTime")
    private Date createTime;
    //关联的企业id
    @TableField(value = "Eid")
    private Integer eid;
    //批次表ID
    @TableField(value = "Aid")
    private Integer aid;
    //批次号
    @TableField(value = "BatchNumber")
    private String batchNumber;
    //母畜编号
    @TableField(value = "FemaleNumber")
    private String femaleNumber;
}
